package com.coincalf.admin.service;

import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.coincalf.admin.entity.Config;
import com.baomidou.mybatisplus.service.IService;
import com.coincalf.framework.constants.Constant;

/**
 * <p>
 * 平台配置信息 服务类
 * </p>
 *
 * @author qiang
 * @since 2018-05-13
 */
public interface ConfigService extends IService<Config>, Constant {

    /**
     * 查询系统配置
     * @param type 类型
     * @param code 代码
     * @return
     */
    @Cached(name=CACHE_KEY_CONFIG, expire = 120, cacheType = CacheType.BOTH)
    Config queryByCodeAndType(String type, String code);
}
